package Configer

import com.typesafe.config.{Config, ConfigFactory}
import scalikejdbc.config.DBs

//专门解析配置文件eee
object Config {
  val load: Config = ConfigFactory.load()

  //解析序列化
  val serializer: String = load.getString("spark.serializer")

  //解析日志文件路径
  val logPath: String = load.getString("Log.path")

  //解析parquet文件输出路径
  val parquetPath = load.getString("parquet.path")

  //解析省市数据分布目标路径
  val proAndCityPath: String = load.getString("proAndCity.path")

  //解析mysql相关信息
  val url: String = load.getString("db.default.url")
  val user: String = load.getString("db.default.user")
  val password: String = load.getString("db.default.password")
  val driver: String = load.getString("db.default.driver")
  val table: String = load.getString("db.default.table")

  //val setupMySQL = DBs.setup()
}
